
#include "StopwatchTask.h"

xtime start_time, tmp2time;
uint32_t fake_ms;
uint32_t duration, old_duration; 
int men,det;

int isRunning;

__task void TaskStopwatchDisplay(void){

    while(1){  
        
    }             
}

__task void TaskStopwatch(void){

    int x,last=2;  
    OS_TID idDisplayTask;

	clr_all_pannal();
    print_lcd(0,"### Stopwatch ##"); 
   
    idDisplayTask = os_tsk_create(TaskStopwatchDisplay    ,40);
    
    while (1){            
        
        x = Scankey();  
        //penekanan tombol terus menerus tidak dihiraukan
        if (last) {last=x;x=0;}else{last=x;} 
  
        switch (x){
            case SW_RESET: 
              
                break;
            case SW_START:
             
                break;
            case BACK:     
                
                break;
        } 
    }
}
